<?php
error_reporting (5); 
    session_start(); 
    header("Content-Type: text/html;charset=utf-8");
    if (!isset($_SESSION['secure']) || $_SESSION['secure']!='conexion_segura' ) {  echo "<script type=text/javascript> window.location = '../index.php'; </script>";   }
?>

<html>
    <head>
        <link rel="stylesheet" href="css/style.css" type="text/css" media="screen">
    </head>
    <body id="portal">
        <div id="menuLateral">
            <h3>Menu</h3>
            <div class="elementoMenu first">
                <a class="opcion" href="portal.php?p=up" >SUBIR IMAGEN</a>
            </div>
            <div class="elementoMenu">
                <a class="opcion" href="portal.php?p=down" >BORRAR IMAGEN</a> 
            </div>
            <div class="elementoMenu">
                <a class="opcion" href="portal.php?p=close" >SALIR</a> 
            </div>
            
        </div>
        <div id="contenido">
            <?php
                switch ($_GET['p']){
                case 'up':
                        require 'php_s/up.php';
                    break;
                case 'down':
                        require 'php_s/down.php';
                    break;
                case 'close':
                        require 'php_s/close.php';
                    break;
                }
                ?>
        </div>
    </body>
</html>

